package com.a_baseTest;

/**
 * 软件园的徐州金蝶java面试题
 * Created by WDJ on 2019/11/6.
 */
public class HasStatic {

    private static int x=100;

    public static void main(String[] args) {
        HasStatic hs1 = new HasStatic();
        hs1.x++;
        HasStatic hs2 = new HasStatic();
        hs2.x++;
        hs1 = new HasStatic();
        hs1.x++;
        HasStatic.x--;
        System.out.println("x="+x);
    }


}
